//CalendarEvent.h
//  OfficeBook
//
//  Created by 孙晓奇 on 15/9/22.
//  Copyright © 2015年 sunny. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CalendarEvent : NSManagedObject

@property (nonatomic, strong) NSString *subject;
@property (nonatomic, strong) NSDate   *start;
@property (nonatomic, strong) NSDate   *end;
@property (nonatomic, strong) NSString *title;
@property (nonatomic, strong) NSString *location;

@property (nonatomic, strong) NSNumber *flag;   // 事件标记

- (NSDate *)day; // Derived attribute to make it easy to sort events into days by equality

@end
